home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / selectv1.tar / selectv1 / Makefile < prev    next >
Makefile  |  1993-09-04  |  864b  |  46 lines

  1. # Makefile for selectnews
  2. # Eugene Kim -- August 11, 1993
  3.  
  4. CC = gcc
  5.  
  6. # definitions: if using curses, uncomment below DEFS and comment out
  7. #              the other DEFS
  8.  
  9. #DEFS = 
  10. DEFS = -DNCURSES
  11.  
  12. # libraries: if using curses, uncomment below LIBS and comment out
  13. #            the other LIBS
  14.  
  15. #LIBS = -lcurses -ltermcap
  16. LIBS = -lncurses
  17.  
  18. CFLAGS = -O6 -N $(DEFS)
  19.  
  20. EXE_DIR = /usr/bin
  21. MAN_DIR = /usr/man
  22.  
  23. OBJ = main.o diskio.o screenio.o global.o dllist.o
  24.  
  25. all: selectnews
  26.  
  27. selectnews: $(OBJ)
  28.     $(CC) $(CFLAGS) -o selectnews $(OBJ) $(LIBS)
  29.  
  30. dllist.o: global.h dllist.h
  31. global.o: global.h
  32. screenio.o: headers.h
  33. diskio.o: headers.h
  34. main.o: dllist.h headers.h
  35.  
  36. install: selectnews
  37.     mkdir -p $(EXE_DIR)
  38.     cp selectnews $(EXE_DIR)
  39.     chown root $(EXE_DIR)/selectnews
  40.     cp selectnews.1 $(MAN_DIR)/man1
  41.     chown root $(MAN_DIR)/man1/selectnews.1
  42.  
  43. clean:
  44.     rm -f *.o selectnews core
  45.  
  46.